package com.zx.idc.backend.gui.api.commom.factory.encrypt;

import java.nio.charset.StandardCharsets;

/**
 * 机密解密空实现类
 * Created by hasee on 2019/2/20.
 */
public class NotEncryptionImpl implements Encrypt {

    @Override
    public String encrypt(byte[] bytes, String ps, String offset, boolean isBase64Encode) {
        return new String(bytes, StandardCharsets.UTF_8);
    }

    @Override
    public byte[] decrypt(String text, String ps, String offset, boolean isBase64Encode) {
        return text.getBytes();
    }
}
